<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Admin\Components\Controller;

class IndexController extends Controller
{

  public function toIndex(Request $request)
  {
    return $this->render('/index');
    //        return view('admin..index')->with('admin', $admin);
  }

  public function welcome(Request $request)
  {
    // $data = [
    //   'HTTP_HOST' => $request->server()['HTTP_HOST'],
    //   'DOCUMENT_ROOT' => $request->server()['DOCUMENT_ROOT'],
    //   'SERVER_SOFTWARE' => $request->server()['SERVER_SOFTWARE'],
    //   'SERVER_PORT' => $request->server()['SERVER_PORT'],
    //   'PHP_VERSION' => PHP_VERSION,
    // ];
    // return $this->render('admin.welcome.welcome', [
    //   'data' => $data,
    // ]);
    // return $this->render('welcome', [
    //   'data' => $data,
    // ]);
    return $this->render('/welcome');
  }
}
